package com.mainworks.model.system.entity;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;

import java.io.Serializable;

/**
 * 下拉框常量类
 * @Author: HuangMinJie
 * @CreateDate: 2021/10/31 10:41
 * @Description:
 * @Version: 1.0.0.0
 * @ModifiedBy:
 * @ModifiedDate:
 * @ModifiedDescription:
 */
@Data
public class Dictionary implements Serializable {
    private String labelName;
    private String labelValue;

    @Override
    public String toString() {
        return "Dictionary{" +
                "labelName='" + labelName + '\'' +
                ", labelValue='" + labelValue + '\'' +
                '}';
    }

    public String toJSONString() {
        return "{" + "\"labelName\":\"" + labelName + "\"" +", \"labelValue\":\"" + labelValue + "\"}";
    }
    public JSONObject toJSONObject(){
        return JSONObject.parseObject(toJSONString());
    }
}
